{
 "cells": [
  {
   "cell_type": "markdown",
   "id": "44f0ca19",
   "metadata": {},
   "source": [
    "---\n",
    "* 2023-11-20\n",
    "* 课程：Python语言\n",
    "* week12课堂\n",
    "---"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "828bb7d9",
   "metadata": {},
   "source": [
    "# 1. 字典的创建\n",
    "\n",
    "> 1. 按照数据结构的形态创建：[,],(,),{,}\n",
    "> 2. 按照数据结构的方法创建：list(),tuple(),set(),dict()\n",
    "> 3. 根据自身的性质创建：\n",
    ">> 1. [],append\n",
    ">> 2. value1,value2,value3\n",
    ">> 3. {}"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 2,
   "id": "4099f39b",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "{'name': 'Jessa', 'country': 'USA', 'telephone': 1178}\n",
      "<class 'dict'>\n"
     ]
    }
   ],
   "source": [
    "# 方法一：\n",
    "person = {\n",
    "    \"name\": \"Jessa\",\n",
    "    \"country\": \"USA\",\n",
    "    \"telephone\": 1178\n",
    "}\n",
    "print(person)\n",
    "print(type(person))"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 3,
   "id": "c0f6045f",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "{'name': 'Jessa', 'country': 'USA', 'telephone': 1178}\n",
      "<class 'dict'>\n"
     ]
    }
   ],
   "source": [
    "# 方法二：\n",
    "person = dict(\n",
    "    name = \"Jessa\",\n",
    "    country = \"USA\",\n",
    "    telephone = 1178\n",
    ")\n",
    "print(person)\n",
    "print(type(person))"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 4,
   "id": "2af4e1a4",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "{'name': 'Jessa', 'country': 'USA', 'telephone': '1178'}\n",
      "<class 'dict'>\n"
     ]
    }
   ],
   "source": [
    "# 方法三: 字典的新增\n",
    "person = {}\n",
    "person['name'] = \"Jessa\"\n",
    "person['country'] = \"USA\"\n",
    "person['telephone'] = \"1178\"\n",
    "print(person)\n",
    "print(type(person))"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "0db6d0c1",
   "metadata": {},
   "source": [
    "# 2. 字典的一般方法"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "a293e882",
   "metadata": {},
   "source": [
    "## 1. 查询\n",
    "\n",
    "> in 方法:查询dict中是否存在其关键词key\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 5,
   "id": "3e637a02",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "True"
      ]
     },
     "execution_count": 5,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "'name' in person"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 6,
   "id": "c00fb71e",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "False"
      ]
     },
     "execution_count": 6,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "\"Jessa\" in person"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 7,
   "id": "703d92a5",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "'Jessa'"
      ]
     },
     "execution_count": 7,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "person.get('name')"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 8,
   "id": "61a894d0",
   "metadata": {},
   "outputs": [],
   "source": [
    "person.get(\"Jessa\")"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 10,
   "id": "6cdf98c1",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Jessa\n"
     ]
    }
   ],
   "source": [
    "keys = 'name'\n",
    "if keys in person:\n",
    "    print(person.get(keys))"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "60bc39ad",
   "metadata": {},
   "source": [
    "# 2. 字典的items方法（关于字典的循环）"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 11,
   "id": "cc1f93c8",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "dict_items([('name', 'Jessa'), ('country', 'USA'), ('telephone', '1178')])"
      ]
     },
     "execution_count": 11,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "person.items()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 13,
   "id": "2055077a",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "name\n",
      "country\n",
      "telephone\n"
     ]
    }
   ],
   "source": [
    "# 循环一个元素得到的结果是key\n",
    "for i in person:\n",
    "    print(i)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 15,
   "id": "d33d1d0a",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "name Jessa\n",
      "country USA\n",
      "telephone 1178\n"
     ]
    }
   ],
   "source": [
    "for k,v in person.items():\n",
    "    print(k,v)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 17,
   "id": "6dcf4550",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'小明': 80, '小红': 85, 'Jessa': 95}"
      ]
     },
     "execution_count": 17,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# 案例：需求，找出所有的大于90分的同学\n",
    "python_成绩 = {\n",
    "    \"小明\": 80,\n",
    "    \"小红\": 85,\n",
    "    \"Jessa\": 95\n",
    "}\n",
    "python_成绩"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 18,
   "id": "13dcb4c7",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Jessa 95\n"
     ]
    }
   ],
   "source": [
    "for k,v in python_成绩.items():\n",
    "    if v > 90:\n",
    "        print(k,v)"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "5cc8c35b",
   "metadata": {},
   "source": [
    "# 3. 字典的keys，values方法\n",
    "\n",
    "> 1. keys：可以查看所有关键词，大致了解下有哪些属性\n",
    "> 2. values：可以查看所有的结果，大致了解下结果的特征\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 19,
   "id": "2171059f",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "dict_keys(['name', 'country', 'telephone'])"
      ]
     },
     "execution_count": 19,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "person.keys()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 20,
   "id": "8e886fbe",
   "metadata": {},
   "outputs": [],
   "source": [
    "import requests"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 27,
   "id": "2e537e76",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'args': {},\n",
       " 'headers': {'Accept': '*/*',\n",
       "  'Accept-Encoding': 'gzip, deflate',\n",
       "  'Host': 'httpbin.org',\n",
       "  'User-Agent': 'python-requests/2.25.1',\n",
       "  'X-Amzn-Trace-Id': 'Root=1-655b4978-3c7715f72150e80b0ff7ef65'},\n",
       " 'origin': '210.21.79.227',\n",
       " 'url': 'https://httpbin.org/get'}"
      ]
     },
     "execution_count": 27,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "r = requests.get(\"https://httpbin.org/get\")\n",
    "results = r.json()\n",
    "results"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 29,
   "id": "e952e633",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "dict_keys(['args', 'headers', 'origin', 'url'])"
      ]
     },
     "execution_count": 29,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "results.keys()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 30,
   "id": "3aa0b8a7",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "dict_keys(['Accept', 'Accept-Encoding', 'Host', 'User-Agent', 'X-Amzn-Trace-Id'])"
      ]
     },
     "execution_count": 30,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "results['headers'].keys()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 31,
   "id": "85bf3e43",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "dict_values(['Jessa', 'USA', '1178'])"
      ]
     },
     "execution_count": 31,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "person.values()"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "a811d748",
   "metadata": {},
   "source": [
    "# 4. 字典的删除 ：pop"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 37,
   "id": "8ac9dc16",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "{'name': 'Jessa', 'country': 'USA', 'telephone': '1178'}\n",
      "<class 'dict'>\n"
     ]
    }
   ],
   "source": [
    "person = {}\n",
    "person['name'] = \"Jessa\"\n",
    "person['country'] = \"USA\"\n",
    "person['telephone'] = \"1178\"\n",
    "print(person)\n",
    "print(type(person))"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 34,
   "id": "6566dafc",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'name': 'Jessa', 'country': 'USA', 'telephone': '1178'}"
      ]
     },
     "execution_count": 34,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# 一般情况下，所有的数据做删除操作时，都会有 备份 的操作\n",
    "person_备份 = person.copy()\n",
    "person_备份"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 35,
   "id": "fdfe61ca",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'name': 'Jessa', 'telephone': '1178'}"
      ]
     },
     "execution_count": 35,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "if \"country\" in person:\n",
    "    person.pop(\"country\")\n",
    "person"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 36,
   "id": "213e1a42",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'name': 'Jessa', 'country': 'USA', 'telephone': '1178'}"
      ]
     },
     "execution_count": 36,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "person_备份"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 39,
   "id": "7ef40763",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'name': 'Jessa', 'country': 'USA', 'telephone': '1178'}"
      ]
     },
     "execution_count": 39,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "person"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 40,
   "id": "71c69d95",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "('telephone', '1178')"
      ]
     },
     "execution_count": 40,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "person.popitem()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 41,
   "id": "9d18da2d",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'name': 'Jessa', 'country': 'USA'}"
      ]
     },
     "execution_count": 41,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "person"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "149785b9",
   "metadata": {},
   "source": [
    "# 4. 关于字典的特殊（高级）用法\n",
    "\n",
    "> 1. fromkeys()\n",
    "> 2. setdefault()"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "e7aa64b7",
   "metadata": {},
   "source": [
    "## 4.1 fromkeys()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 42,
   "id": "4d7bef82",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "{'name': 'Jessa', 'country': 'USA', 'telephone': '1178'}\n",
      "<class 'dict'>\n"
     ]
    }
   ],
   "source": [
    "person = {}\n",
    "person['name'] = \"Jessa\"\n",
    "person['country'] = \"USA\"\n",
    "person['telephone'] = \"1178\"\n",
    "print(person)\n",
    "print(type(person))"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 43,
   "id": "23fd7e8c",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Help on built-in function fromkeys:\n",
      "\n",
      "fromkeys(iterable, value=None, /) method of builtins.type instance\n",
      "    Create a new dictionary with keys from iterable and values set to value.\n",
      "\n"
     ]
    }
   ],
   "source": [
    "help(person.fromkeys)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 44,
   "id": "eeb7c167",
   "metadata": {},
   "outputs": [],
   "source": [
    "# 我们可以创建一个字典，字典的value 可以自定义（初始化）\n",
    "\n",
    "name_list = [\"Marry\",\"jack\",\"年少的我\",\"00后的时代\"]\n",
    "my_world = {}\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 51,
   "id": "6fa22fba",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'Marry': 10, 'jack': 10, '年少的我': 10, '00后的时代': 10}"
      ]
     },
     "execution_count": 51,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "my_world.fromkeys(name_list,10)"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "6b9d3b42",
   "metadata": {},
   "source": [
    "## 4.2 setdefault()\n",
    "\n",
    "> 1. 指定key为某个值，但如果该key已经存在，就不执行\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 57,
   "id": "0d3baf8f",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "'活泼开朗，非常有主见'"
      ]
     },
     "execution_count": 57,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "tinydict = {\n",
    "    'Marry': '活泼开朗，非常有主见', \n",
    "    'Jack': '内向，独立'\n",
    "}\n",
    " \n",
    "tinydict.setdefault('Marry',\"胸心狭隘，斤斤计较\")"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 54,
   "id": "e070c592",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'Marry': '活泼开朗，非常有主见', 'Jack': '内向，独立'}"
      ]
     },
     "execution_count": 54,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "tinydict"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 55,
   "id": "6e62e029",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "'胸心狭隘，斤斤计较'"
      ]
     },
     "execution_count": 55,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "tinydict.setdefault('John',\"胸心狭隘，斤斤计较\")"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 56,
   "id": "d4274b2b",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'Marry': '活泼开朗，非常有主见', 'Jack': '内向，独立', 'John': '胸心狭隘，斤斤计较'}"
      ]
     },
     "execution_count": 56,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "tinydict"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "8656d278",
   "metadata": {},
   "outputs": [],
   "source": []
  },
  {
   "cell_type": "code",
   "execution_count": 58,
   "id": "8d6eb3e1",
   "metadata": {},
   "outputs": [],
   "source": [
    "tinydict['John'] = \"胸心狭隘，斤斤计较\""
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 59,
   "id": "7daf2877",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'Marry': '活泼开朗，非常有主见', 'Jack': '内向，独立', 'John': '胸心狭隘，斤斤计较'}"
      ]
     },
     "execution_count": 59,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "tinydict"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 60,
   "id": "8ee6e1df",
   "metadata": {},
   "outputs": [],
   "source": [
    "tinydict['Marry'] = \"胸心狭隘，斤斤计较\""
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 61,
   "id": "67d40e5f",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'Marry': '胸心狭隘，斤斤计较', 'Jack': '内向，独立', 'John': '胸心狭隘，斤斤计较'}"
      ]
     },
     "execution_count": 61,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "tinydict"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "11c32c3c",
   "metadata": {},
   "source": [
    "# 5. 实践\n",
    "\n",
    "> 1. keys有哪些？\n",
    "> 2. roads 有哪些？\n",
    "> 3. 建筑设施 name 有哪些？\n",
    "> 4. direction 为 北的 name 有哪些？\n",
    "> 5. 有 tel 的 建筑（name）有哪些？\n",
    "> 6. type 为\"餐饮服务\"有哪些？\n",
    "> 7. distance 小于200米的建筑设施有哪些？"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 2,
   "id": "bf2769e3",
   "metadata": {},
   "outputs": [],
   "source": [
    "geo_nfu = {\"status\":\"1\",\"regeocode\":{\"roads\":[{\"id\":\"020F49F0050461206\",\"location\":\"113.678,23.6284\",\"direction\":\"北\",\"name\":\"博学路\",\"distance\":\"7.63232\"},{\"id\":\"020F49F0050462229\",\"location\":\"113.679,23.6245\",\"direction\":\"北\",\"name\":\"老虎形街\",\"distance\":\"445.159\"},{\"id\":\"020F49F005046601453\",\"location\":\"113.677,23.6347\",\"direction\":\"南\",\"name\":\"中山路\",\"distance\":\"712.706\"}],\"roadinters\":[{\"second_name\":\"中山路\",\"first_id\":\"020F49F0050461206\",\"second_id\":\"020F49F005046601453\",\"location\":\"113.676745,23.634493\",\"distance\":\"691.177\",\"first_name\":\"博学路\",\"direction\":\"南\"}],\"formatted_address\":\"广东省广州市从化区温泉镇博学路广州南方学院\",\"addressComponent\":{\"city\":\"广州市\",\"province\":\"广东省\",\"adcode\":\"440117\",\"district\":\"从化区\",\"towncode\":\"440117100000\",\"streetNumber\":{\"number\":\"24号\",\"location\":\"113.677267,23.629149\",\"direction\":\"西北\",\"distance\":\"129.943\",\"street\":\"博学路\"},\"country\":\"中国\",\"township\":\"温泉镇\",\"businessAreas\":[[]],\"building\":{\"name\":[],\"type\":[]},\"neighborhood\":{\"name\":[],\"type\":[]},\"citycode\":\"020\"},\"aois\":[{\"area\":\"530435.909488\",\"type\":\"141201\",\"id\":\"B00140MR9A\",\"location\":\"113.679240,23.632576\",\"adcode\":\"440117\",\"name\":\"广州南方学院\",\"distance\":\"0\"}],\"pois\":[{\"id\":\"B00140MR9A\",\"direction\":\"北\",\"businessarea\":[],\"address\":\"温泉大道882号\",\"poiweight\":\"0.450402\",\"name\":\"广州南方学院\",\"location\":\"113.679240,23.632576\",\"distance\":\"470.34\",\"tel\":[],\"type\":\"科教文化服务;学校;高等院校\"},{\"id\":\"B0FFK8J7XY\",\"direction\":\"东\",\"businessarea\":[],\"address\":\"温泉大道882号广州南方学院\",\"poiweight\":\"0.233244\",\"name\":\"广州南方学院(东南门)\",\"location\":\"113.678689,23.628304\",\"distance\":\"44.279\",\"tel\":[],\"type\":\"通行设施;临街院门;临街院门\"},{\"id\":\"B0FFHRJDM9\",\"direction\":\"东南\",\"businessarea\":[],\"address\":\"中大南方学院南门1号\",\"poiweight\":\"0.256152\",\"name\":\"中南公寓\",\"location\":\"113.680340,23.627566\",\"distance\":\"231.223\",\"tel\":\"13711245345\",\"type\":\"商务住宅;住宅区;住宅小区\"},{\"id\":\"B0H0M9NO43\",\"direction\":\"东北\",\"businessarea\":[],\"address\":\"博学路广州南方学院\",\"poiweight\":\"0.292147\",\"name\":\"广州南方学院南方湖观景台\",\"location\":\"113.679464,23.630429\",\"distance\":\"252.022\",\"tel\":[],\"type\":\"风景名胜;风景名胜;观景点\"},{\"id\":\"B0FFHC4XU0\",\"direction\":\"东北\",\"businessarea\":[],\"address\":\"温泉大道886号\",\"poiweight\":\"0.191595\",\"name\":\"广州南方学院学术交流中心\",\"location\":\"113.680066,23.630242\",\"distance\":\"270.76\",\"tel\":[],\"type\":\"科教文化服务;会展中心;会展中心\"},{\"id\":\"B0FFKP838K\",\"direction\":\"北\",\"businessarea\":[],\"address\":\"博学路25号\",\"poiweight\":\"0.191742\",\"name\":\"教学楼3号(外国语学院)\",\"location\":\"113.677247,23.630947\",\"distance\":\"298.093\",\"tel\":[],\"type\":\"科教文化服务;学校;高等院校\"},{\"id\":\"B0FFG4TAF2\",\"direction\":\"东南\",\"businessarea\":[],\"address\":\"温泉镇乌土村松浪队5号(近博学路)\",\"poiweight\":\"0.237309\",\"name\":\"广州南方公寓\",\"location\":\"113.678983,23.627778\",\"distance\":\"102.617\",\"tel\":\"13622768437\",\"type\":\"住宿服务;旅馆招待所;旅馆招待所\"},{\"id\":\"B0FFKP7GY5\",\"direction\":\"北\",\"businessarea\":[],\"address\":\"温泉大道882号\",\"poiweight\":\"0.218221\",\"name\":\"广州南方学院3号实验楼\",\"location\":\"113.678650,23.630612\",\"distance\":\"244.566\",\"tel\":[],\"type\":\"地名地址信息;门牌信息;楼栋号\"},{\"id\":\"B0GKYRKNUA\",\"direction\":\"东南\",\"businessarea\":[],\"address\":\"温泉镇平岗村乌土平岗街25号(中南公寓旁)\",\"poiweight\":\"0.209893\",\"name\":\"乐妍茶(中大店)\",\"location\":\"113.680097,23.627643\",\"distance\":\"205.173\",\"tel\":\"18028862548\",\"type\":\"餐饮服务;冷饮店;冷饮店\"},{\"id\":\"B0H33OZ7BU\",\"direction\":\"北\",\"businessarea\":[],\"address\":\"博学路广州南方学院\",\"poiweight\":\"0.191148\",\"name\":\"广州南方学院学术报告厅\",\"location\":\"113.678698,23.631219\",\"distance\":\"312.056\",\"tel\":[],\"type\":\"科教文化服务;科教文化场所;科教文化场所\"},{\"id\":\"B0JRKNVEFY\",\"direction\":\"东北\",\"businessarea\":[],\"address\":\"温泉镇笃行路20、22、24号广州南方学院商业中心1层1F-001-1号\",\"poiweight\":\"0.209894\",\"name\":\"喜茶(广州南方学院店)\",\"location\":\"113.679905,23.630533\",\"distance\":\"285.72\",\"tel\":[],\"type\":\"餐饮服务;冷饮店;冷饮店\"},{\"id\":\"B0HGD588HJ\",\"direction\":\"北\",\"businessarea\":[],\"address\":\"温泉大道882号\",\"poiweight\":\"0.221662\",\"name\":\"广州南方学院4号教学楼\",\"location\":\"113.677461,23.630578\",\"distance\":\"252.08\",\"tel\":[],\"type\":\"地名地址信息;门牌信息;楼栋号\"},{\"id\":\"B0H1XKYTYG\",\"direction\":\"西北\",\"businessarea\":[],\"address\":\"温泉大道882号广州南方学院\",\"poiweight\":\"0.198742\",\"name\":\"广州南方学院西区篮球场\",\"location\":\"113.677741,23.629552\",\"distance\":\"135.401\",\"tel\":[],\"type\":\"体育休闲服务;运动场馆;篮球场馆\"},{\"id\":\"B0HGDU76L2\",\"direction\":\"北\",\"businessarea\":[],\"address\":\"温泉大道882号\",\"poiweight\":\"0.221662\",\"name\":\"广州南方学院2号实验楼\",\"location\":\"113.678327,23.630969\",\"distance\":\"281.377\",\"tel\":[],\"type\":\"地名地址信息;门牌信息;楼栋号\"},{\"id\":\"B0IB2GMPW4\",\"direction\":\"东北\",\"businessarea\":[],\"address\":\"温泉镇笃行路20、22、24号中山大学南方学院商业中心一楼1F-005\",\"poiweight\":\"0.218331\",\"name\":\"古茗(南方学院店)\",\"location\":\"113.680105,23.630681\",\"distance\":\"311.024\",\"tel\":\"13717659301;18027267535\",\"type\":\"餐饮服务;休闲餐饮场所;休闲餐饮场所\"},{\"id\":\"B0I12780ZU\",\"direction\":\"东南\",\"businessarea\":[],\"address\":\"内部地面停车场\",\"poiweight\":\"0.203102\",\"name\":\"内部地面停车场(出入口)\",\"location\":\"113.679445,23.627444\",\"distance\":\"162.262\",\"tel\":[],\"type\":\"交通设施服务;停车场;停车场出入口\"},{\"id\":\"B0I1276BCM\",\"direction\":\"东南\",\"businessarea\":[],\"address\":[],\"poiweight\":\"0.257239\",\"name\":\"内部地面停车场\",\"location\":\"113.679445,23.627444\",\"distance\":\"162.262\",\"tel\":[],\"type\":\"交通设施服务;停车场;专用停车场\"},{\"id\":\"B0H25SMRKP\",\"direction\":\"东北\",\"businessarea\":[],\"address\":\"温泉大道882号广州南方学院\",\"poiweight\":\"0.263595\",\"name\":\"广州南方学院大礼堂\",\"location\":\"113.680076,23.631502\",\"distance\":\"386.65\",\"tel\":[],\"type\":\"科教文化服务;科教文化场所;科教文化场所\"},{\"id\":\"BV11417822\",\"direction\":\"东南\",\"businessarea\":[],\"address\":\"从15路从20路\",\"poiweight\":\"0.400088\",\"name\":\"南方学院后门总站(公交站)\",\"location\":\"113.679280,23.627201\",\"distance\":\"171.243\",\"tel\":[],\"type\":\"交通设施服务;公交车站;公交车站相关\"},{\"id\":\"B0FFK0MZII\",\"direction\":\"东\",\"businessarea\":[],\"address\":\"温泉大道882号广州南方学院后门润泰超市一楼\",\"poiweight\":\"0.10175\",\"name\":\"街电(尚千谷中大南方店)\",\"location\":\"113.680254,23.627804\",\"distance\":\"213.132\",\"tel\":[],\"type\":\"生活服务;共享设备;充电宝\"},{\"id\":\"B0HRV1D5FP\",\"direction\":\"东北\",\"businessarea\":[],\"address\":\"温泉大道882号广州南方学院\",\"poiweight\":\"0.191158\",\"name\":\"广州南方学院博物馆\",\"location\":\"113.679624,23.631631\",\"distance\":\"380.463\",\"tel\":[],\"type\":\"科教文化服务;博物馆;博物馆\"},{\"id\":\"B0FFKMSV6B\",\"direction\":\"西北\",\"businessarea\":[],\"address\":\"温泉大道882号\",\"poiweight\":\"0.232574\",\"name\":\"广州南方学院西学楼2号楼\",\"location\":\"113.675891,23.630025\",\"distance\":\"300.564\",\"tel\":[],\"type\":\"地名地址信息;门牌信息;楼栋号\"},{\"id\":\"B0FFKP81F0\",\"direction\":\"西北\",\"businessarea\":[],\"address\":\"博学路与中山路交叉口南340米\",\"poiweight\":\"0.191742\",\"name\":\"教学楼1号(文学与传媒学院)\",\"location\":\"113.676866,23.631736\",\"distance\":\"393.93\",\"tel\":[],\"type\":\"科教文化服务;科教文化场所;科教文化场所\"},{\"id\":\"B0HGDU99RM\",\"direction\":\"北\",\"businessarea\":[],\"address\":\"温泉大道882号广州南方学院内\",\"poiweight\":\"0.257947\",\"name\":\"广州南方学院图书馆\",\"location\":\"113.679303,23.632322\",\"distance\":\"444.196\",\"tel\":\"020-61787368;020-61787371\",\"type\":\"科教文化服务;图书馆;图书馆\"},{\"id\":\"B0HGDU92JD\",\"direction\":\"北\",\"businessarea\":[],\"address\":\"温泉大道882号\",\"poiweight\":\"0.221662\",\"name\":\"广州南方学院1号教学楼\",\"location\":\"113.676968,23.631720\",\"distance\":\"388.57\",\"tel\":[],\"type\":\"地名地址信息;门牌信息;楼栋号\"},{\"id\":\"B0FFH6K3U9\",\"direction\":\"西北\",\"businessarea\":[],\"address\":\"温泉镇温泉大道882号广州南方学院H7栋1-5层\",\"poiweight\":\"0.254885\",\"name\":\"广州中大南方招待所\",\"location\":\"113.676330,23.631332\",\"distance\":\"378.102\",\"tel\":\"020-61787222\",\"type\":\"住宿服务;住宿服务相关;住宿服务相关\"},{\"id\":\"B0H1YMW8PH\",\"direction\":\"西北\",\"businessarea\":[],\"address\":\"温泉镇中山大学南方学院博学路6号西区食堂首层\",\"poiweight\":\"0.214311\",\"name\":\"肯德基(从化南方学院店)\",\"location\":\"113.676031,23.631594\",\"distance\":\"419.018\",\"tel\":\"4009200715\",\"type\":\"餐饮服务;快餐厅;快餐厅\"},{\"id\":\"B0HGD592BJ\",\"direction\":\"东北\",\"businessarea\":[],\"address\":\"温泉大道882号\",\"poiweight\":\"0.221662\",\"name\":\"广州南方学院综合楼\",\"location\":\"113.680109,23.631605\",\"distance\":\"398.334\",\"tel\":[],\"type\":\"地名地址信息;门牌信息;楼栋号\"},{\"id\":\"B0HGD58NF8\",\"direction\":\"北\",\"businessarea\":[],\"address\":\"温泉大道882号广州南方学院新综合楼2层\",\"poiweight\":\"0.191229\",\"name\":\"广州南方学院达人书院\",\"location\":\"113.679041,23.632392\",\"distance\":\"446.366\",\"tel\":[],\"type\":\"科教文化服务;学校;高等院校\"},{\"id\":\"B0JBGSFI8C\",\"direction\":\"西北\",\"businessarea\":[],\"address\":\"温泉大道882号\",\"poiweight\":\"0.115716\",\"name\":\"广州南方学院西学楼1号楼\",\"location\":\"113.675570,23.630596\",\"distance\":\"365.742\",\"tel\":[],\"type\":\"地名地址信息;门牌信息;楼栋号\"}]},\"info\":\"OK\",\"infocode\":\"10000\"}"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 3,
   "id": "578c48c9",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'status': '1',\n",
       " 'regeocode': {'roads': [{'id': '020F49F0050461206',\n",
       "    'location': '113.678,23.6284',\n",
       "    'direction': '北',\n",
       "    'name': '博学路',\n",
       "    'distance': '7.63232'},\n",
       "   {'id': '020F49F0050462229',\n",
       "    'location': '113.679,23.6245',\n",
       "    'direction': '北',\n",
       "    'name': '老虎形街',\n",
       "    'distance': '445.159'},\n",
       "   {'id': '020F49F005046601453',\n",
       "    'location': '113.677,23.6347',\n",
       "    'direction': '南',\n",
       "    'name': '中山路',\n",
       "    'distance': '712.706'}],\n",
       "  'roadinters': [{'second_name': '中山路',\n",
       "    'first_id': '020F49F0050461206',\n",
       "    'second_id': '020F49F005046601453',\n",
       "    'location': '113.676745,23.634493',\n",
       "    'distance': '691.177',\n",
       "    'first_name': '博学路',\n",
       "    'direction': '南'}],\n",
       "  'formatted_address': '广东省广州市从化区温泉镇博学路广州南方学院',\n",
       "  'addressComponent': {'city': '广州市',\n",
       "   'province': '广东省',\n",
       "   'adcode': '440117',\n",
       "   'district': '从化区',\n",
       "   'towncode': '440117100000',\n",
       "   'streetNumber': {'number': '24号',\n",
       "    'location': '113.677267,23.629149',\n",
       "    'direction': '西北',\n",
       "    'distance': '129.943',\n",
       "    'street': '博学路'},\n",
       "   'country': '中国',\n",
       "   'township': '温泉镇',\n",
       "   'businessAreas': [[]],\n",
       "   'building': {'name': [], 'type': []},\n",
       "   'neighborhood': {'name': [], 'type': []},\n",
       "   'citycode': '020'},\n",
       "  'aois': [{'area': '530435.909488',\n",
       "    'type': '141201',\n",
       "    'id': 'B00140MR9A',\n",
       "    'location': '113.679240,23.632576',\n",
       "    'adcode': '440117',\n",
       "    'name': '广州南方学院',\n",
       "    'distance': '0'}],\n",
       "  'pois': [{'id': 'B00140MR9A',\n",
       "    'direction': '北',\n",
       "    'businessarea': [],\n",
       "    'address': '温泉大道882号',\n",
       "    'poiweight': '0.450402',\n",
       "    'name': '广州南方学院',\n",
       "    'location': '113.679240,23.632576',\n",
       "    'distance': '470.34',\n",
       "    'tel': [],\n",
       "    'type': '科教文化服务;学校;高等院校'},\n",
       "   {'id': 'B0FFK8J7XY',\n",
       "    'direction': '东',\n",
       "    'businessarea': [],\n",
       "    'address': '温泉大道882号广州南方学院',\n",
       "    'poiweight': '0.233244',\n",
       "    'name': '广州南方学院(东南门)',\n",
       "    'location': '113.678689,23.628304',\n",
       "    'distance': '44.279',\n",
       "    'tel': [],\n",
       "    'type': '通行设施;临街院门;临街院门'},\n",
       "   {'id': 'B0FFHRJDM9',\n",
       "    'direction': '东南',\n",
       "    'businessarea': [],\n",
       "    'address': '中大南方学院南门1号',\n",
       "    'poiweight': '0.256152',\n",
       "    'name': '中南公寓',\n",
       "    'location': '113.680340,23.627566',\n",
       "    'distance': '231.223',\n",
       "    'tel': '13711245345',\n",
       "    'type': '商务住宅;住宅区;住宅小区'},\n",
       "   {'id': 'B0H0M9NO43',\n",
       "    'direction': '东北',\n",
       "    'businessarea': [],\n",
       "    'address': '博学路广州南方学院',\n",
       "    'poiweight': '0.292147',\n",
       "    'name': '广州南方学院南方湖观景台',\n",
       "    'location': '113.679464,23.630429',\n",
       "    'distance': '252.022',\n",
       "    'tel': [],\n",
       "    'type': '风景名胜;风景名胜;观景点'},\n",
       "   {'id': 'B0FFHC4XU0',\n",
       "    'direction': '东北',\n",
       "    'businessarea': [],\n",
       "    'address': '温泉大道886号',\n",
       "    'poiweight': '0.191595',\n",
       "    'name': '广州南方学院学术交流中心',\n",
       "    'location': '113.680066,23.630242',\n",
       "    'distance': '270.76',\n",
       "    'tel': [],\n",
       "    'type': '科教文化服务;会展中心;会展中心'},\n",
       "   {'id': 'B0FFKP838K',\n",
       "    'direction': '北',\n",
       "    'businessarea': [],\n",
       "    'address': '博学路25号',\n",
       "    'poiweight': '0.191742',\n",
       "    'name': '教学楼3号(外国语学院)',\n",
       "    'location': '113.677247,23.630947',\n",
       "    'distance': '298.093',\n",
       "    'tel': [],\n",
       "    'type': '科教文化服务;学校;高等院校'},\n",
       "   {'id': 'B0FFG4TAF2',\n",
       "    'direction': '东南',\n",
       "    'businessarea': [],\n",
       "    'address': '温泉镇乌土村松浪队5号(近博学路)',\n",
       "    'poiweight': '0.237309',\n",
       "    'name': '广州南方公寓',\n",
       "    'location': '113.678983,23.627778',\n",
       "    'distance': '102.617',\n",
       "    'tel': '13622768437',\n",
       "    'type': '住宿服务;旅馆招待所;旅馆招待所'},\n",
       "   {'id': 'B0FFKP7GY5',\n",
       "    'direction': '北',\n",
       "    'businessarea': [],\n",
       "    'address': '温泉大道882号',\n",
       "    'poiweight': '0.218221',\n",
       "    'name': '广州南方学院3号实验楼',\n",
       "    'location': '113.678650,23.630612',\n",
       "    'distance': '244.566',\n",
       "    'tel': [],\n",
       "    'type': '地名地址信息;门牌信息;楼栋号'},\n",
       "   {'id': 'B0GKYRKNUA',\n",
       "    'direction': '东南',\n",
       "    'businessarea': [],\n",
       "    'address': '温泉镇平岗村乌土平岗街25号(中南公寓旁)',\n",
       "    'poiweight': '0.209893',\n",
       "    'name': '乐妍茶(中大店)',\n",
       "    'location': '113.680097,23.627643',\n",
       "    'distance': '205.173',\n",
       "    'tel': '18028862548',\n",
       "    'type': '餐饮服务;冷饮店;冷饮店'},\n",
       "   {'id': 'B0H33OZ7BU',\n",
       "    'direction': '北',\n",
       "    'businessarea': [],\n",
       "    'address': '博学路广州南方学院',\n",
       "    'poiweight': '0.191148',\n",
       "    'name': '广州南方学院学术报告厅',\n",
       "    'location': '113.678698,23.631219',\n",
       "    'distance': '312.056',\n",
       "    'tel': [],\n",
       "    'type': '科教文化服务;科教文化场所;科教文化场所'},\n",
       "   {'id': 'B0JRKNVEFY',\n",
       "    'direction': '东北',\n",
       "    'businessarea': [],\n",
       "    'address': '温泉镇笃行路20、22、24号广州南方学院商业中心1层1F-001-1号',\n",
       "    'poiweight': '0.209894',\n",
       "    'name': '喜茶(广州南方学院店)',\n",
       "    'location': '113.679905,23.630533',\n",
       "    'distance': '285.72',\n",
       "    'tel': [],\n",
       "    'type': '餐饮服务;冷饮店;冷饮店'},\n",
       "   {'id': 'B0HGD588HJ',\n",
       "    'direction': '北',\n",
       "    'businessarea': [],\n",
       "    'address': '温泉大道882号',\n",
       "    'poiweight': '0.221662',\n",
       "    'name': '广州南方学院4号教学楼',\n",
       "    'location': '113.677461,23.630578',\n",
       "    'distance': '252.08',\n",
       "    'tel': [],\n",
       "    'type': '地名地址信息;门牌信息;楼栋号'},\n",
       "   {'id': 'B0H1XKYTYG',\n",
       "    'direction': '西北',\n",
       "    'businessarea': [],\n",
       "    'address': '温泉大道882号广州南方学院',\n",
       "    'poiweight': '0.198742',\n",
       "    'name': '广州南方学院西区篮球场',\n",
       "    'location': '113.677741,23.629552',\n",
       "    'distance': '135.401',\n",
       "    'tel': [],\n",
       "    'type': '体育休闲服务;运动场馆;篮球场馆'},\n",
       "   {'id': 'B0HGDU76L2',\n",
       "    'direction': '北',\n",
       "    'businessarea': [],\n",
       "    'address': '温泉大道882号',\n",
       "    'poiweight': '0.221662',\n",
       "    'name': '广州南方学院2号实验楼',\n",
       "    'location': '113.678327,23.630969',\n",
       "    'distance': '281.377',\n",
       "    'tel': [],\n",
       "    'type': '地名地址信息;门牌信息;楼栋号'},\n",
       "   {'id': 'B0IB2GMPW4',\n",
       "    'direction': '东北',\n",
       "    'businessarea': [],\n",
       "    'address': '温泉镇笃行路20、22、24号中山大学南方学院商业中心一楼1F-005',\n",
       "    'poiweight': '0.218331',\n",
       "    'name': '古茗(南方学院店)',\n",
       "    'location': '113.680105,23.630681',\n",
       "    'distance': '311.024',\n",
       "    'tel': '13717659301;18027267535',\n",
       "    'type': '餐饮服务;休闲餐饮场所;休闲餐饮场所'},\n",
       "   {'id': 'B0I12780ZU',\n",
       "    'direction': '东南',\n",
       "    'businessarea': [],\n",
       "    'address': '内部地面停车场',\n",
       "    'poiweight': '0.203102',\n",
       "    'name': '内部地面停车场(出入口)',\n",
       "    'location': '113.679445,23.627444',\n",
       "    'distance': '162.262',\n",
       "    'tel': [],\n",
       "    'type': '交通设施服务;停车场;停车场出入口'},\n",
       "   {'id': 'B0I1276BCM',\n",
       "    'direction': '东南',\n",
       "    'businessarea': [],\n",
       "    'address': [],\n",
       "    'poiweight': '0.257239',\n",
       "    'name': '内部地面停车场',\n",
       "    'location': '113.679445,23.627444',\n",
       "    'distance': '162.262',\n",
       "    'tel': [],\n",
       "    'type': '交通设施服务;停车场;专用停车场'},\n",
       "   {'id': 'B0H25SMRKP',\n",
       "    'direction': '东北',\n",
       "    'businessarea': [],\n",
       "    'address': '温泉大道882号广州南方学院',\n",
       "    'poiweight': '0.263595',\n",
       "    'name': '广州南方学院大礼堂',\n",
       "    'location': '113.680076,23.631502',\n",
       "    'distance': '386.65',\n",
       "    'tel': [],\n",
       "    'type': '科教文化服务;科教文化场所;科教文化场所'},\n",
       "   {'id': 'BV11417822',\n",
       "    'direction': '东南',\n",
       "    'businessarea': [],\n",
       "    'address': '从15路从20路',\n",
       "    'poiweight': '0.400088',\n",
       "    'name': '南方学院后门总站(公交站)',\n",
       "    'location': '113.679280,23.627201',\n",
       "    'distance': '171.243',\n",
       "    'tel': [],\n",
       "    'type': '交通设施服务;公交车站;公交车站相关'},\n",
       "   {'id': 'B0FFK0MZII',\n",
       "    'direction': '东',\n",
       "    'businessarea': [],\n",
       "    'address': '温泉大道882号广州南方学院后门润泰超市一楼',\n",
       "    'poiweight': '0.10175',\n",
       "    'name': '街电(尚千谷中大南方店)',\n",
       "    'location': '113.680254,23.627804',\n",
       "    'distance': '213.132',\n",
       "    'tel': [],\n",
       "    'type': '生活服务;共享设备;充电宝'},\n",
       "   {'id': 'B0HRV1D5FP',\n",
       "    'direction': '东北',\n",
       "    'businessarea': [],\n",
       "    'address': '温泉大道882号广州南方学院',\n",
       "    'poiweight': '0.191158',\n",
       "    'name': '广州南方学院博物馆',\n",
       "    'location': '113.679624,23.631631',\n",
       "    'distance': '380.463',\n",
       "    'tel': [],\n",
       "    'type': '科教文化服务;博物馆;博物馆'},\n",
       "   {'id': 'B0FFKMSV6B',\n",
       "    'direction': '西北',\n",
       "    'businessarea': [],\n",
       "    'address': '温泉大道882号',\n",
       "    'poiweight': '0.232574',\n",
       "    'name': '广州南方学院西学楼2号楼',\n",
       "    'location': '113.675891,23.630025',\n",
       "    'distance': '300.564',\n",
       "    'tel': [],\n",
       "    'type': '地名地址信息;门牌信息;楼栋号'},\n",
       "   {'id': 'B0FFKP81F0',\n",
       "    'direction': '西北',\n",
       "    'businessarea': [],\n",
       "    'address': '博学路与中山路交叉口南340米',\n",
       "    'poiweight': '0.191742',\n",
       "    'name': '教学楼1号(文学与传媒学院)',\n",
       "    'location': '113.676866,23.631736',\n",
       "    'distance': '393.93',\n",
       "    'tel': [],\n",
       "    'type': '科教文化服务;科教文化场所;科教文化场所'},\n",
       "   {'id': 'B0HGDU99RM',\n",
       "    'direction': '北',\n",
       "    'businessarea': [],\n",
       "    'address': '温泉大道882号广州南方学院内',\n",
       "    'poiweight': '0.257947',\n",
       "    'name': '广州南方学院图书馆',\n",
       "    'location': '113.679303,23.632322',\n",
       "    'distance': '444.196',\n",
       "    'tel': '020-61787368;020-61787371',\n",
       "    'type': '科教文化服务;图书馆;图书馆'},\n",
       "   {'id': 'B0HGDU92JD',\n",
       "    'direction': '北',\n",
       "    'businessarea': [],\n",
       "    'address': '温泉大道882号',\n",
       "    'poiweight': '0.221662',\n",
       "    'name': '广州南方学院1号教学楼',\n",
       "    'location': '113.676968,23.631720',\n",
       "    'distance': '388.57',\n",
       "    'tel': [],\n",
       "    'type': '地名地址信息;门牌信息;楼栋号'},\n",
       "   {'id': 'B0FFH6K3U9',\n",
       "    'direction': '西北',\n",
       "    'businessarea': [],\n",
       "    'address': '温泉镇温泉大道882号广州南方学院H7栋1-5层',\n",
       "    'poiweight': '0.254885',\n",
       "    'name': '广州中大南方招待所',\n",
       "    'location': '113.676330,23.631332',\n",
       "    'distance': '378.102',\n",
       "    'tel': '020-61787222',\n",
       "    'type': '住宿服务;住宿服务相关;住宿服务相关'},\n",
       "   {'id': 'B0H1YMW8PH',\n",
       "    'direction': '西北',\n",
       "    'businessarea': [],\n",
       "    'address': '温泉镇中山大学南方学院博学路6号西区食堂首层',\n",
       "    'poiweight': '0.214311',\n",
       "    'name': '肯德基(从化南方学院店)',\n",
       "    'location': '113.676031,23.631594',\n",
       "    'distance': '419.018',\n",
       "    'tel': '4009200715',\n",
       "    'type': '餐饮服务;快餐厅;快餐厅'},\n",
       "   {'id': 'B0HGD592BJ',\n",
       "    'direction': '东北',\n",
       "    'businessarea': [],\n",
       "    'address': '温泉大道882号',\n",
       "    'poiweight': '0.221662',\n",
       "    'name': '广州南方学院综合楼',\n",
       "    'location': '113.680109,23.631605',\n",
       "    'distance': '398.334',\n",
       "    'tel': [],\n",
       "    'type': '地名地址信息;门牌信息;楼栋号'},\n",
       "   {'id': 'B0HGD58NF8',\n",
       "    'direction': '北',\n",
       "    'businessarea': [],\n",
       "    'address': '温泉大道882号广州南方学院新综合楼2层',\n",
       "    'poiweight': '0.191229',\n",
       "    'name': '广州南方学院达人书院',\n",
       "    'location': '113.679041,23.632392',\n",
       "    'distance': '446.366',\n",
       "    'tel': [],\n",
       "    'type': '科教文化服务;学校;高等院校'},\n",
       "   {'id': 'B0JBGSFI8C',\n",
       "    'direction': '西北',\n",
       "    'businessarea': [],\n",
       "    'address': '温泉大道882号',\n",
       "    'poiweight': '0.115716',\n",
       "    'name': '广州南方学院西学楼1号楼',\n",
       "    'location': '113.675570,23.630596',\n",
       "    'distance': '365.742',\n",
       "    'tel': [],\n",
       "    'type': '地名地址信息;门牌信息;楼栋号'}]},\n",
       " 'info': 'OK',\n",
       " 'infocode': '10000'}"
      ]
     },
     "execution_count": 3,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "geo_nfu"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 6,
   "id": "7f9e79f7",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "dict_keys(['status', 'regeocode', 'info', 'infocode'])"
      ]
     },
     "execution_count": 6,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# 1. Key有哪些\n",
    "geo_nfu.keys()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 7,
   "id": "81ae1351",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "'1'"
      ]
     },
     "execution_count": 7,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "geo_nfu['status']"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 10,
   "id": "f6b8a80b",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "'10000'"
      ]
     },
     "execution_count": 10,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "geo_nfu['infocode']"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 9,
   "id": "700cd2be",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "'OK'"
      ]
     },
     "execution_count": 9,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "geo_nfu['info']"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 8,
   "id": "ad5f2914",
   "metadata": {
    "scrolled": true
   },
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'roads': [{'id': '020F49F0050461206',\n",
       "   'location': '113.678,23.6284',\n",
       "   'direction': '北',\n",
       "   'name': '博学路',\n",
       "   'distance': '7.63232'},\n",
       "  {'id': '020F49F0050462229',\n",
       "   'location': '113.679,23.6245',\n",
       "   'direction': '北',\n",
       "   'name': '老虎形街',\n",
       "   'distance': '445.159'},\n",
       "  {'id': '020F49F005046601453',\n",
       "   'location': '113.677,23.6347',\n",
       "   'direction': '南',\n",
       "   'name': '中山路',\n",
       "   'distance': '712.706'}],\n",
       " 'roadinters': [{'second_name': '中山路',\n",
       "   'first_id': '020F49F0050461206',\n",
       "   'second_id': '020F49F005046601453',\n",
       "   'location': '113.676745,23.634493',\n",
       "   'distance': '691.177',\n",
       "   'first_name': '博学路',\n",
       "   'direction': '南'}],\n",
       " 'formatted_address': '广东省广州市从化区温泉镇博学路广州南方学院',\n",
       " 'addressComponent': {'city': '广州市',\n",
       "  'province': '广东省',\n",
       "  'adcode': '440117',\n",
       "  'district': '从化区',\n",
       "  'towncode': '440117100000',\n",
       "  'streetNumber': {'number': '24号',\n",
       "   'location': '113.677267,23.629149',\n",
       "   'direction': '西北',\n",
       "   'distance': '129.943',\n",
       "   'street': '博学路'},\n",
       "  'country': '中国',\n",
       "  'township': '温泉镇',\n",
       "  'businessAreas': [[]],\n",
       "  'building': {'name': [], 'type': []},\n",
       "  'neighborhood': {'name': [], 'type': []},\n",
       "  'citycode': '020'},\n",
       " 'aois': [{'area': '530435.909488',\n",
       "   'type': '141201',\n",
       "   'id': 'B00140MR9A',\n",
       "   'location': '113.679240,23.632576',\n",
       "   'adcode': '440117',\n",
       "   'name': '广州南方学院',\n",
       "   'distance': '0'}],\n",
       " 'pois': [{'id': 'B00140MR9A',\n",
       "   'direction': '北',\n",
       "   'businessarea': [],\n",
       "   'address': '温泉大道882号',\n",
       "   'poiweight': '0.450402',\n",
       "   'name': '广州南方学院',\n",
       "   'location': '113.679240,23.632576',\n",
       "   'distance': '470.34',\n",
       "   'tel': [],\n",
       "   'type': '科教文化服务;学校;高等院校'},\n",
       "  {'id': 'B0FFK8J7XY',\n",
       "   'direction': '东',\n",
       "   'businessarea': [],\n",
       "   'address': '温泉大道882号广州南方学院',\n",
       "   'poiweight': '0.233244',\n",
       "   'name': '广州南方学院(东南门)',\n",
       "   'location': '113.678689,23.628304',\n",
       "   'distance': '44.279',\n",
       "   'tel': [],\n",
       "   'type': '通行设施;临街院门;临街院门'},\n",
       "  {'id': 'B0FFHRJDM9',\n",
       "   'direction': '东南',\n",
       "   'businessarea': [],\n",
       "   'address': '中大南方学院南门1号',\n",
       "   'poiweight': '0.256152',\n",
       "   'name': '中南公寓',\n",
       "   'location': '113.680340,23.627566',\n",
       "   'distance': '231.223',\n",
       "   'tel': '13711245345',\n",
       "   'type': '商务住宅;住宅区;住宅小区'},\n",
       "  {'id': 'B0H0M9NO43',\n",
       "   'direction': '东北',\n",
       "   'businessarea': [],\n",
       "   'address': '博学路广州南方学院',\n",
       "   'poiweight': '0.292147',\n",
       "   'name': '广州南方学院南方湖观景台',\n",
       "   'location': '113.679464,23.630429',\n",
       "   'distance': '252.022',\n",
       "   'tel': [],\n",
       "   'type': '风景名胜;风景名胜;观景点'},\n",
       "  {'id': 'B0FFHC4XU0',\n",
       "   'direction': '东北',\n",
       "   'businessarea': [],\n",
       "   'address': '温泉大道886号',\n",
       "   'poiweight': '0.191595',\n",
       "   'name': '广州南方学院学术交流中心',\n",
       "   'location': '113.680066,23.630242',\n",
       "   'distance': '270.76',\n",
       "   'tel': [],\n",
       "   'type': '科教文化服务;会展中心;会展中心'},\n",
       "  {'id': 'B0FFKP838K',\n",
       "   'direction': '北',\n",
       "   'businessarea': [],\n",
       "   'address': '博学路25号',\n",
       "   'poiweight': '0.191742',\n",
       "   'name': '教学楼3号(外国语学院)',\n",
       "   'location': '113.677247,23.630947',\n",
       "   'distance': '298.093',\n",
       "   'tel': [],\n",
       "   'type': '科教文化服务;学校;高等院校'},\n",
       "  {'id': 'B0FFG4TAF2',\n",
       "   'direction': '东南',\n",
       "   'businessarea': [],\n",
       "   'address': '温泉镇乌土村松浪队5号(近博学路)',\n",
       "   'poiweight': '0.237309',\n",
       "   'name': '广州南方公寓',\n",
       "   'location': '113.678983,23.627778',\n",
       "   'distance': '102.617',\n",
       "   'tel': '13622768437',\n",
       "   'type': '住宿服务;旅馆招待所;旅馆招待所'},\n",
       "  {'id': 'B0FFKP7GY5',\n",
       "   'direction': '北',\n",
       "   'businessarea': [],\n",
       "   'address': '温泉大道882号',\n",
       "   'poiweight': '0.218221',\n",
       "   'name': '广州南方学院3号实验楼',\n",
       "   'location': '113.678650,23.630612',\n",
       "   'distance': '244.566',\n",
       "   'tel': [],\n",
       "   'type': '地名地址信息;门牌信息;楼栋号'},\n",
       "  {'id': 'B0GKYRKNUA',\n",
       "   'direction': '东南',\n",
       "   'businessarea': [],\n",
       "   'address': '温泉镇平岗村乌土平岗街25号(中南公寓旁)',\n",
       "   'poiweight': '0.209893',\n",
       "   'name': '乐妍茶(中大店)',\n",
       "   'location': '113.680097,23.627643',\n",
       "   'distance': '205.173',\n",
       "   'tel': '18028862548',\n",
       "   'type': '餐饮服务;冷饮店;冷饮店'},\n",
       "  {'id': 'B0H33OZ7BU',\n",
       "   'direction': '北',\n",
       "   'businessarea': [],\n",
       "   'address': '博学路广州南方学院',\n",
       "   'poiweight': '0.191148',\n",
       "   'name': '广州南方学院学术报告厅',\n",
       "   'location': '113.678698,23.631219',\n",
       "   'distance': '312.056',\n",
       "   'tel': [],\n",
       "   'type': '科教文化服务;科教文化场所;科教文化场所'},\n",
       "  {'id': 'B0JRKNVEFY',\n",
       "   'direction': '东北',\n",
       "   'businessarea': [],\n",
       "   'address': '温泉镇笃行路20、22、24号广州南方学院商业中心1层1F-001-1号',\n",
       "   'poiweight': '0.209894',\n",
       "   'name': '喜茶(广州南方学院店)',\n",
       "   'location': '113.679905,23.630533',\n",
       "   'distance': '285.72',\n",
       "   'tel': [],\n",
       "   'type': '餐饮服务;冷饮店;冷饮店'},\n",
       "  {'id': 'B0HGD588HJ',\n",
       "   'direction': '北',\n",
       "   'businessarea': [],\n",
       "   'address': '温泉大道882号',\n",
       "   'poiweight': '0.221662',\n",
       "   'name': '广州南方学院4号教学楼',\n",
       "   'location': '113.677461,23.630578',\n",
       "   'distance': '252.08',\n",
       "   'tel': [],\n",
       "   'type': '地名地址信息;门牌信息;楼栋号'},\n",
       "  {'id': 'B0H1XKYTYG',\n",
       "   'direction': '西北',\n",
       "   'businessarea': [],\n",
       "   'address': '温泉大道882号广州南方学院',\n",
       "   'poiweight': '0.198742',\n",
       "   'name': '广州南方学院西区篮球场',\n",
       "   'location': '113.677741,23.629552',\n",
       "   'distance': '135.401',\n",
       "   'tel': [],\n",
       "   'type': '体育休闲服务;运动场馆;篮球场馆'},\n",
       "  {'id': 'B0HGDU76L2',\n",
       "   'direction': '北',\n",
       "   'businessarea': [],\n",
       "   'address': '温泉大道882号',\n",
       "   'poiweight': '0.221662',\n",
       "   'name': '广州南方学院2号实验楼',\n",
       "   'location': '113.678327,23.630969',\n",
       "   'distance': '281.377',\n",
       "   'tel': [],\n",
       "   'type': '地名地址信息;门牌信息;楼栋号'},\n",
       "  {'id': 'B0IB2GMPW4',\n",
       "   'direction': '东北',\n",
       "   'businessarea': [],\n",
       "   'address': '温泉镇笃行路20、22、24号中山大学南方学院商业中心一楼1F-005',\n",
       "   'poiweight': '0.218331',\n",
       "   'name': '古茗(南方学院店)',\n",
       "   'location': '113.680105,23.630681',\n",
       "   'distance': '311.024',\n",
       "   'tel': '13717659301;18027267535',\n",
       "   'type': '餐饮服务;休闲餐饮场所;休闲餐饮场所'},\n",
       "  {'id': 'B0I12780ZU',\n",
       "   'direction': '东南',\n",
       "   'businessarea': [],\n",
       "   'address': '内部地面停车场',\n",
       "   'poiweight': '0.203102',\n",
       "   'name': '内部地面停车场(出入口)',\n",
       "   'location': '113.679445,23.627444',\n",
       "   'distance': '162.262',\n",
       "   'tel': [],\n",
       "   'type': '交通设施服务;停车场;停车场出入口'},\n",
       "  {'id': 'B0I1276BCM',\n",
       "   'direction': '东南',\n",
       "   'businessarea': [],\n",
       "   'address': [],\n",
       "   'poiweight': '0.257239',\n",
       "   'name': '内部地面停车场',\n",
       "   'location': '113.679445,23.627444',\n",
       "   'distance': '162.262',\n",
       "   'tel': [],\n",
       "   'type': '交通设施服务;停车场;专用停车场'},\n",
       "  {'id': 'B0H25SMRKP',\n",
       "   'direction': '东北',\n",
       "   'businessarea': [],\n",
       "   'address': '温泉大道882号广州南方学院',\n",
       "   'poiweight': '0.263595',\n",
       "   'name': '广州南方学院大礼堂',\n",
       "   'location': '113.680076,23.631502',\n",
       "   'distance': '386.65',\n",
       "   'tel': [],\n",
       "   'type': '科教文化服务;科教文化场所;科教文化场所'},\n",
       "  {'id': 'BV11417822',\n",
       "   'direction': '东南',\n",
       "   'businessarea': [],\n",
       "   'address': '从15路从20路',\n",
       "   'poiweight': '0.400088',\n",
       "   'name': '南方学院后门总站(公交站)',\n",
       "   'location': '113.679280,23.627201',\n",
       "   'distance': '171.243',\n",
       "   'tel': [],\n",
       "   'type': '交通设施服务;公交车站;公交车站相关'},\n",
       "  {'id': 'B0FFK0MZII',\n",
       "   'direction': '东',\n",
       "   'businessarea': [],\n",
       "   'address': '温泉大道882号广州南方学院后门润泰超市一楼',\n",
       "   'poiweight': '0.10175',\n",
       "   'name': '街电(尚千谷中大南方店)',\n",
       "   'location': '113.680254,23.627804',\n",
       "   'distance': '213.132',\n",
       "   'tel': [],\n",
       "   'type': '生活服务;共享设备;充电宝'},\n",
       "  {'id': 'B0HRV1D5FP',\n",
       "   'direction': '东北',\n",
       "   'businessarea': [],\n",
       "   'address': '温泉大道882号广州南方学院',\n",
       "   'poiweight': '0.191158',\n",
       "   'name': '广州南方学院博物馆',\n",
       "   'location': '113.679624,23.631631',\n",
       "   'distance': '380.463',\n",
       "   'tel': [],\n",
       "   'type': '科教文化服务;博物馆;博物馆'},\n",
       "  {'id': 'B0FFKMSV6B',\n",
       "   'direction': '西北',\n",
       "   'businessarea': [],\n",
       "   'address': '温泉大道882号',\n",
       "   'poiweight': '0.232574',\n",
       "   'name': '广州南方学院西学楼2号楼',\n",
       "   'location': '113.675891,23.630025',\n",
       "   'distance': '300.564',\n",
       "   'tel': [],\n",
       "   'type': '地名地址信息;门牌信息;楼栋号'},\n",
       "  {'id': 'B0FFKP81F0',\n",
       "   'direction': '西北',\n",
       "   'businessarea': [],\n",
       "   'address': '博学路与中山路交叉口南340米',\n",
       "   'poiweight': '0.191742',\n",
       "   'name': '教学楼1号(文学与传媒学院)',\n",
       "   'location': '113.676866,23.631736',\n",
       "   'distance': '393.93',\n",
       "   'tel': [],\n",
       "   'type': '科教文化服务;科教文化场所;科教文化场所'},\n",
       "  {'id': 'B0HGDU99RM',\n",
       "   'direction': '北',\n",
       "   'businessarea': [],\n",
       "   'address': '温泉大道882号广州南方学院内',\n",
       "   'poiweight': '0.257947',\n",
       "   'name': '广州南方学院图书馆',\n",
       "   'location': '113.679303,23.632322',\n",
       "   'distance': '444.196',\n",
       "   'tel': '020-61787368;020-61787371',\n",
       "   'type': '科教文化服务;图书馆;图书馆'},\n",
       "  {'id': 'B0HGDU92JD',\n",
       "   'direction': '北',\n",
       "   'businessarea': [],\n",
       "   'address': '温泉大道882号',\n",
       "   'poiweight': '0.221662',\n",
       "   'name': '广州南方学院1号教学楼',\n",
       "   'location': '113.676968,23.631720',\n",
       "   'distance': '388.57',\n",
       "   'tel': [],\n",
       "   'type': '地名地址信息;门牌信息;楼栋号'},\n",
       "  {'id': 'B0FFH6K3U9',\n",
       "   'direction': '西北',\n",
       "   'businessarea': [],\n",
       "   'address': '温泉镇温泉大道882号广州南方学院H7栋1-5层',\n",
       "   'poiweight': '0.254885',\n",
       "   'name': '广州中大南方招待所',\n",
       "   'location': '113.676330,23.631332',\n",
       "   'distance': '378.102',\n",
       "   'tel': '020-61787222',\n",
       "   'type': '住宿服务;住宿服务相关;住宿服务相关'},\n",
       "  {'id': 'B0H1YMW8PH',\n",
       "   'direction': '西北',\n",
       "   'businessarea': [],\n",
       "   'address': '温泉镇中山大学南方学院博学路6号西区食堂首层',\n",
       "   'poiweight': '0.214311',\n",
       "   'name': '肯德基(从化南方学院店)',\n",
       "   'location': '113.676031,23.631594',\n",
       "   'distance': '419.018',\n",
       "   'tel': '4009200715',\n",
       "   'type': '餐饮服务;快餐厅;快餐厅'},\n",
       "  {'id': 'B0HGD592BJ',\n",
       "   'direction': '东北',\n",
       "   'businessarea': [],\n",
       "   'address': '温泉大道882号',\n",
       "   'poiweight': '0.221662',\n",
       "   'name': '广州南方学院综合楼',\n",
       "   'location': '113.680109,23.631605',\n",
       "   'distance': '398.334',\n",
       "   'tel': [],\n",
       "   'type': '地名地址信息;门牌信息;楼栋号'},\n",
       "  {'id': 'B0HGD58NF8',\n",
       "   'direction': '北',\n",
       "   'businessarea': [],\n",
       "   'address': '温泉大道882号广州南方学院新综合楼2层',\n",
       "   'poiweight': '0.191229',\n",
       "   'name': '广州南方学院达人书院',\n",
       "   'location': '113.679041,23.632392',\n",
       "   'distance': '446.366',\n",
       "   'tel': [],\n",
       "   'type': '科教文化服务;学校;高等院校'},\n",
       "  {'id': 'B0JBGSFI8C',\n",
       "   'direction': '西北',\n",
       "   'businessarea': [],\n",
       "   'address': '温泉大道882号',\n",
       "   'poiweight': '0.115716',\n",
       "   'name': '广州南方学院西学楼1号楼',\n",
       "   'location': '113.675570,23.630596',\n",
       "   'distance': '365.742',\n",
       "   'tel': [],\n",
       "   'type': '地名地址信息;门牌信息;楼栋号'}]}"
      ]
     },
     "execution_count": 8,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "geo_nfu['regeocode']"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 16,
   "id": "e2fa18e8",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'roads': [{'id': '020F49F0050461206',\n",
       "   'location': '113.678,23.6284',\n",
       "   'direction': '北',\n",
       "   'name': '博学路',\n",
       "   'distance': '7.63232'},\n",
       "  {'id': '020F49F0050462229',\n",
       "   'location': '113.679,23.6245',\n",
       "   'direction': '北',\n",
       "   'name': '老虎形街',\n",
       "   'distance': '445.159'},\n",
       "  {'id': '020F49F005046601453',\n",
       "   'location': '113.677,23.6347',\n",
       "   'direction': '南',\n",
       "   'name': '中山路',\n",
       "   'distance': '712.706'}],\n",
       " 'roadinters': [{'second_name': '中山路',\n",
       "   'first_id': '020F49F0050461206',\n",
       "   'second_id': '020F49F005046601453',\n",
       "   'location': '113.676745,23.634493',\n",
       "   'distance': '691.177',\n",
       "   'first_name': '博学路',\n",
       "   'direction': '南'}],\n",
       " 'formatted_address': '广东省广州市从化区温泉镇博学路广州南方学院',\n",
       " 'addressComponent': {'city': '广州市',\n",
       "  'province': '广东省',\n",
       "  'adcode': '440117',\n",
       "  'district': '从化区',\n",
       "  'towncode': '440117100000',\n",
       "  'streetNumber': {'number': '24号',\n",
       "   'location': '113.677267,23.629149',\n",
       "   'direction': '西北',\n",
       "   'distance': '129.943',\n",
       "   'street': '博学路'},\n",
       "  'country': '中国',\n",
       "  'township': '温泉镇',\n",
       "  'businessAreas': [[]],\n",
       "  'building': {'name': [], 'type': []},\n",
       "  'neighborhood': {'name': [], 'type': []},\n",
       "  'citycode': '020'},\n",
       " 'aois': [{'area': '530435.909488',\n",
       "   'type': '141201',\n",
       "   'id': 'B00140MR9A',\n",
       "   'location': '113.679240,23.632576',\n",
       "   'adcode': '440117',\n",
       "   'name': '广州南方学院',\n",
       "   'distance': '0'}],\n",
       " 'pois': [{'id': 'B00140MR9A',\n",
       "   'direction': '北',\n",
       "   'businessarea': [],\n",
       "   'address': '温泉大道882号',\n",
       "   'poiweight': '0.450402',\n",
       "   'name': '广州南方学院',\n",
       "   'location': '113.679240,23.632576',\n",
       "   'distance': '470.34',\n",
       "   'tel': [],\n",
       "   'type': '科教文化服务;学校;高等院校'},\n",
       "  {'id': 'B0FFK8J7XY',\n",
       "   'direction': '东',\n",
       "   'businessarea': [],\n",
       "   'address': '温泉大道882号广州南方学院',\n",
       "   'poiweight': '0.233244',\n",
       "   'name': '广州南方学院(东南门)',\n",
       "   'location': '113.678689,23.628304',\n",
       "   'distance': '44.279',\n",
       "   'tel': [],\n",
       "   'type': '通行设施;临街院门;临街院门'},\n",
       "  {'id': 'B0FFHRJDM9',\n",
       "   'direction': '东南',\n",
       "   'businessarea': [],\n",
       "   'address': '中大南方学院南门1号',\n",
       "   'poiweight': '0.256152',\n",
       "   'name': '中南公寓',\n",
       "   'location': '113.680340,23.627566',\n",
       "   'distance': '231.223',\n",
       "   'tel': '13711245345',\n",
       "   'type': '商务住宅;住宅区;住宅小区'},\n",
       "  {'id': 'B0H0M9NO43',\n",
       "   'direction': '东北',\n",
       "   'businessarea': [],\n",
       "   'address': '博学路广州南方学院',\n",
       "   'poiweight': '0.292147',\n",
       "   'name': '广州南方学院南方湖观景台',\n",
       "   'location': '113.679464,23.630429',\n",
       "   'distance': '252.022',\n",
       "   'tel': [],\n",
       "   'type': '风景名胜;风景名胜;观景点'},\n",
       "  {'id': 'B0FFHC4XU0',\n",
       "   'direction': '东北',\n",
       "   'businessarea': [],\n",
       "   'address': '温泉大道886号',\n",
       "   'poiweight': '0.191595',\n",
       "   'name': '广州南方学院学术交流中心',\n",
       "   'location': '113.680066,23.630242',\n",
       "   'distance': '270.76',\n",
       "   'tel': [],\n",
       "   'type': '科教文化服务;会展中心;会展中心'},\n",
       "  {'id': 'B0FFKP838K',\n",
       "   'direction': '北',\n",
       "   'businessarea': [],\n",
       "   'address': '博学路25号',\n",
       "   'poiweight': '0.191742',\n",
       "   'name': '教学楼3号(外国语学院)',\n",
       "   'location': '113.677247,23.630947',\n",
       "   'distance': '298.093',\n",
       "   'tel': [],\n",
       "   'type': '科教文化服务;学校;高等院校'},\n",
       "  {'id': 'B0FFG4TAF2',\n",
       "   'direction': '东南',\n",
       "   'businessarea': [],\n",
       "   'address': '温泉镇乌土村松浪队5号(近博学路)',\n",
       "   'poiweight': '0.237309',\n",
       "   'name': '广州南方公寓',\n",
       "   'location': '113.678983,23.627778',\n",
       "   'distance': '102.617',\n",
       "   'tel': '13622768437',\n",
       "   'type': '住宿服务;旅馆招待所;旅馆招待所'},\n",
       "  {'id': 'B0FFKP7GY5',\n",
       "   'direction': '北',\n",
       "   'businessarea': [],\n",
       "   'address': '温泉大道882号',\n",
       "   'poiweight': '0.218221',\n",
       "   'name': '广州南方学院3号实验楼',\n",
       "   'location': '113.678650,23.630612',\n",
       "   'distance': '244.566',\n",
       "   'tel': [],\n",
       "   'type': '地名地址信息;门牌信息;楼栋号'},\n",
       "  {'id': 'B0GKYRKNUA',\n",
       "   'direction': '东南',\n",
       "   'businessarea': [],\n",
       "   'address': '温泉镇平岗村乌土平岗街25号(中南公寓旁)',\n",
       "   'poiweight': '0.209893',\n",
       "   'name': '乐妍茶(中大店)',\n",
       "   'location': '113.680097,23.627643',\n",
       "   'distance': '205.173',\n",
       "   'tel': '18028862548',\n",
       "   'type': '餐饮服务;冷饮店;冷饮店'},\n",
       "  {'id': 'B0H33OZ7BU',\n",
       "   'direction': '北',\n",
       "   'businessarea': [],\n",
       "   'address': '博学路广州南方学院',\n",
       "   'poiweight': '0.191148',\n",
       "   'name': '广州南方学院学术报告厅',\n",
       "   'location': '113.678698,23.631219',\n",
       "   'distance': '312.056',\n",
       "   'tel': [],\n",
       "   'type': '科教文化服务;科教文化场所;科教文化场所'},\n",
       "  {'id': 'B0JRKNVEFY',\n",
       "   'direction': '东北',\n",
       "   'businessarea': [],\n",
       "   'address': '温泉镇笃行路20、22、24号广州南方学院商业中心1层1F-001-1号',\n",
       "   'poiweight': '0.209894',\n",
       "   'name': '喜茶(广州南方学院店)',\n",
       "   'location': '113.679905,23.630533',\n",
       "   'distance': '285.72',\n",
       "   'tel': [],\n",
       "   'type': '餐饮服务;冷饮店;冷饮店'},\n",
       "  {'id': 'B0HGD588HJ',\n",
       "   'direction': '北',\n",
       "   'businessarea': [],\n",
       "   'address': '温泉大道882号',\n",
       "   'poiweight': '0.221662',\n",
       "   'name': '广州南方学院4号教学楼',\n",
       "   'location': '113.677461,23.630578',\n",
       "   'distance': '252.08',\n",
       "   'tel': [],\n",
       "   'type': '地名地址信息;门牌信息;楼栋号'},\n",
       "  {'id': 'B0H1XKYTYG',\n",
       "   'direction': '西北',\n",
       "   'businessarea': [],\n",
       "   'address': '温泉大道882号广州南方学院',\n",
       "   'poiweight': '0.198742',\n",
       "   'name': '广州南方学院西区篮球场',\n",
       "   'location': '113.677741,23.629552',\n",
       "   'distance': '135.401',\n",
       "   'tel': [],\n",
       "   'type': '体育休闲服务;运动场馆;篮球场馆'},\n",
       "  {'id': 'B0HGDU76L2',\n",
       "   'direction': '北',\n",
       "   'businessarea': [],\n",
       "   'address': '温泉大道882号',\n",
       "   'poiweight': '0.221662',\n",
       "   'name': '广州南方学院2号实验楼',\n",
       "   'location': '113.678327,23.630969',\n",
       "   'distance': '281.377',\n",
       "   'tel': [],\n",
       "   'type': '地名地址信息;门牌信息;楼栋号'},\n",
       "  {'id': 'B0IB2GMPW4',\n",
       "   'direction': '东北',\n",
       "   'businessarea': [],\n",
       "   'address': '温泉镇笃行路20、22、24号中山大学南方学院商业中心一楼1F-005',\n",
       "   'poiweight': '0.218331',\n",
       "   'name': '古茗(南方学院店)',\n",
       "   'location': '113.680105,23.630681',\n",
       "   'distance': '311.024',\n",
       "   'tel': '13717659301;18027267535',\n",
       "   'type': '餐饮服务;休闲餐饮场所;休闲餐饮场所'},\n",
       "  {'id': 'B0I12780ZU',\n",
       "   'direction': '东南',\n",
       "   'businessarea': [],\n",
       "   'address': '内部地面停车场',\n",
       "   'poiweight': '0.203102',\n",
       "   'name': '内部地面停车场(出入口)',\n",
       "   'location': '113.679445,23.627444',\n",
       "   'distance': '162.262',\n",
       "   'tel': [],\n",
       "   'type': '交通设施服务;停车场;停车场出入口'},\n",
       "  {'id': 'B0I1276BCM',\n",
       "   'direction': '东南',\n",
       "   'businessarea': [],\n",
       "   'address': [],\n",
       "   'poiweight': '0.257239',\n",
       "   'name': '内部地面停车场',\n",
       "   'location': '113.679445,23.627444',\n",
       "   'distance': '162.262',\n",
       "   'tel': [],\n",
       "   'type': '交通设施服务;停车场;专用停车场'},\n",
       "  {'id': 'B0H25SMRKP',\n",
       "   'direction': '东北',\n",
       "   'businessarea': [],\n",
       "   'address': '温泉大道882号广州南方学院',\n",
       "   'poiweight': '0.263595',\n",
       "   'name': '广州南方学院大礼堂',\n",
       "   'location': '113.680076,23.631502',\n",
       "   'distance': '386.65',\n",
       "   'tel': [],\n",
       "   'type': '科教文化服务;科教文化场所;科教文化场所'},\n",
       "  {'id': 'BV11417822',\n",
       "   'direction': '东南',\n",
       "   'businessarea': [],\n",
       "   'address': '从15路从20路',\n",
       "   'poiweight': '0.400088',\n",
       "   'name': '南方学院后门总站(公交站)',\n",
       "   'location': '113.679280,23.627201',\n",
       "   'distance': '171.243',\n",
       "   'tel': [],\n",
       "   'type': '交通设施服务;公交车站;公交车站相关'},\n",
       "  {'id': 'B0FFK0MZII',\n",
       "   'direction': '东',\n",
       "   'businessarea': [],\n",
       "   'address': '温泉大道882号广州南方学院后门润泰超市一楼',\n",
       "   'poiweight': '0.10175',\n",
       "   'name': '街电(尚千谷中大南方店)',\n",
       "   'location': '113.680254,23.627804',\n",
       "   'distance': '213.132',\n",
       "   'tel': [],\n",
       "   'type': '生活服务;共享设备;充电宝'},\n",
       "  {'id': 'B0HRV1D5FP',\n",
       "   'direction': '东北',\n",
       "   'businessarea': [],\n",
       "   'address': '温泉大道882号广州南方学院',\n",
       "   'poiweight': '0.191158',\n",
       "   'name': '广州南方学院博物馆',\n",
       "   'location': '113.679624,23.631631',\n",
       "   'distance': '380.463',\n",
       "   'tel': [],\n",
       "   'type': '科教文化服务;博物馆;博物馆'},\n",
       "  {'id': 'B0FFKMSV6B',\n",
       "   'direction': '西北',\n",
       "   'businessarea': [],\n",
       "   'address': '温泉大道882号',\n",
       "   'poiweight': '0.232574',\n",
       "   'name': '广州南方学院西学楼2号楼',\n",
       "   'location': '113.675891,23.630025',\n",
       "   'distance': '300.564',\n",
       "   'tel': [],\n",
       "   'type': '地名地址信息;门牌信息;楼栋号'},\n",
       "  {'id': 'B0FFKP81F0',\n",
       "   'direction': '西北',\n",
       "   'businessarea': [],\n",
       "   'address': '博学路与中山路交叉口南340米',\n",
       "   'poiweight': '0.191742',\n",
       "   'name': '教学楼1号(文学与传媒学院)',\n",
       "   'location': '113.676866,23.631736',\n",
       "   'distance': '393.93',\n",
       "   'tel': [],\n",
       "   'type': '科教文化服务;科教文化场所;科教文化场所'},\n",
       "  {'id': 'B0HGDU99RM',\n",
       "   'direction': '北',\n",
       "   'businessarea': [],\n",
       "   'address': '温泉大道882号广州南方学院内',\n",
       "   'poiweight': '0.257947',\n",
       "   'name': '广州南方学院图书馆',\n",
       "   'location': '113.679303,23.632322',\n",
       "   'distance': '444.196',\n",
       "   'tel': '020-61787368;020-61787371',\n",
       "   'type': '科教文化服务;图书馆;图书馆'},\n",
       "  {'id': 'B0HGDU92JD',\n",
       "   'direction': '北',\n",
       "   'businessarea': [],\n",
       "   'address': '温泉大道882号',\n",
       "   'poiweight': '0.221662',\n",
       "   'name': '广州南方学院1号教学楼',\n",
       "   'location': '113.676968,23.631720',\n",
       "   'distance': '388.57',\n",
       "   'tel': [],\n",
       "   'type': '地名地址信息;门牌信息;楼栋号'},\n",
       "  {'id': 'B0FFH6K3U9',\n",
       "   'direction': '西北',\n",
       "   'businessarea': [],\n",
       "   'address': '温泉镇温泉大道882号广州南方学院H7栋1-5层',\n",
       "   'poiweight': '0.254885',\n",
       "   'name': '广州中大南方招待所',\n",
       "   'location': '113.676330,23.631332',\n",
       "   'distance': '378.102',\n",
       "   'tel': '020-61787222',\n",
       "   'type': '住宿服务;住宿服务相关;住宿服务相关'},\n",
       "  {'id': 'B0H1YMW8PH',\n",
       "   'direction': '西北',\n",
       "   'businessarea': [],\n",
       "   'address': '温泉镇中山大学南方学院博学路6号西区食堂首层',\n",
       "   'poiweight': '0.214311',\n",
       "   'name': '肯德基(从化南方学院店)',\n",
       "   'location': '113.676031,23.631594',\n",
       "   'distance': '419.018',\n",
       "   'tel': '4009200715',\n",
       "   'type': '餐饮服务;快餐厅;快餐厅'},\n",
       "  {'id': 'B0HGD592BJ',\n",
       "   'direction': '东北',\n",
       "   'businessarea': [],\n",
       "   'address': '温泉大道882号',\n",
       "   'poiweight': '0.221662',\n",
       "   'name': '广州南方学院综合楼',\n",
       "   'location': '113.680109,23.631605',\n",
       "   'distance': '398.334',\n",
       "   'tel': [],\n",
       "   'type': '地名地址信息;门牌信息;楼栋号'},\n",
       "  {'id': 'B0HGD58NF8',\n",
       "   'direction': '北',\n",
       "   'businessarea': [],\n",
       "   'address': '温泉大道882号广州南方学院新综合楼2层',\n",
       "   'poiweight': '0.191229',\n",
       "   'name': '广州南方学院达人书院',\n",
       "   'location': '113.679041,23.632392',\n",
       "   'distance': '446.366',\n",
       "   'tel': [],\n",
       "   'type': '科教文化服务;学校;高等院校'},\n",
       "  {'id': 'B0JBGSFI8C',\n",
       "   'direction': '西北',\n",
       "   'businessarea': [],\n",
       "   'address': '温泉大道882号',\n",
       "   'poiweight': '0.115716',\n",
       "   'name': '广州南方学院西学楼1号楼',\n",
       "   'location': '113.675570,23.630596',\n",
       "   'distance': '365.742',\n",
       "   'tel': [],\n",
       "   'type': '地名地址信息;门牌信息;楼栋号'}]}"
      ]
     },
     "execution_count": 16,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "regeocode_data = geo_nfu['regeocode']\n",
    "regeocode_data"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 17,
   "id": "6c633879",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "[{'id': '020F49F0050461206',\n",
       "  'location': '113.678,23.6284',\n",
       "  'direction': '北',\n",
       "  'name': '博学路',\n",
       "  'distance': '7.63232'},\n",
       " {'id': '020F49F0050462229',\n",
       "  'location': '113.679,23.6245',\n",
       "  'direction': '北',\n",
       "  'name': '老虎形街',\n",
       "  'distance': '445.159'},\n",
       " {'id': '020F49F005046601453',\n",
       "  'location': '113.677,23.6347',\n",
       "  'direction': '南',\n",
       "  'name': '中山路',\n",
       "  'distance': '712.706'}]"
      ]
     },
     "execution_count": 17,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "regeocode_data['roads']"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 18,
   "id": "26f7825c",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "dict_keys(['roads', 'roadinters', 'formatted_address', 'addressComponent', 'aois', 'pois'])"
      ]
     },
     "execution_count": 18,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "regeocode_data.keys()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 19,
   "id": "e28e584f",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "[{'second_name': '中山路',\n",
       "  'first_id': '020F49F0050461206',\n",
       "  'second_id': '020F49F005046601453',\n",
       "  'location': '113.676745,23.634493',\n",
       "  'distance': '691.177',\n",
       "  'first_name': '博学路',\n",
       "  'direction': '南'}]"
      ]
     },
     "execution_count": 19,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "regeocode_data['roadinters']"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 20,
   "id": "e39d10ac",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "'广东省广州市从化区温泉镇博学路广州南方学院'"
      ]
     },
     "execution_count": 20,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "regeocode_data['formatted_address']"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 21,
   "id": "d223d473",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "[{'area': '530435.909488',\n",
       "  'type': '141201',\n",
       "  'id': 'B00140MR9A',\n",
       "  'location': '113.679240,23.632576',\n",
       "  'adcode': '440117',\n",
       "  'name': '广州南方学院',\n",
       "  'distance': '0'}]"
      ]
     },
     "execution_count": 21,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "regeocode_data['aois']"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 22,
   "id": "32f801c6",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "[{'id': 'B00140MR9A',\n",
       "  'direction': '北',\n",
       "  'businessarea': [],\n",
       "  'address': '温泉大道882号',\n",
       "  'poiweight': '0.450402',\n",
       "  'name': '广州南方学院',\n",
       "  'location': '113.679240,23.632576',\n",
       "  'distance': '470.34',\n",
       "  'tel': [],\n",
       "  'type': '科教文化服务;学校;高等院校'},\n",
       " {'id': 'B0FFK8J7XY',\n",
       "  'direction': '东',\n",
       "  'businessarea': [],\n",
       "  'address': '温泉大道882号广州南方学院',\n",
       "  'poiweight': '0.233244',\n",
       "  'name': '广州南方学院(东南门)',\n",
       "  'location': '113.678689,23.628304',\n",
       "  'distance': '44.279',\n",
       "  'tel': [],\n",
       "  'type': '通行设施;临街院门;临街院门'},\n",
       " {'id': 'B0FFHRJDM9',\n",
       "  'direction': '东南',\n",
       "  'businessarea': [],\n",
       "  'address': '中大南方学院南门1号',\n",
       "  'poiweight': '0.256152',\n",
       "  'name': '中南公寓',\n",
       "  'location': '113.680340,23.627566',\n",
       "  'distance': '231.223',\n",
       "  'tel': '13711245345',\n",
       "  'type': '商务住宅;住宅区;住宅小区'},\n",
       " {'id': 'B0H0M9NO43',\n",
       "  'direction': '东北',\n",
       "  'businessarea': [],\n",
       "  'address': '博学路广州南方学院',\n",
       "  'poiweight': '0.292147',\n",
       "  'name': '广州南方学院南方湖观景台',\n",
       "  'location': '113.679464,23.630429',\n",
       "  'distance': '252.022',\n",
       "  'tel': [],\n",
       "  'type': '风景名胜;风景名胜;观景点'},\n",
       " {'id': 'B0FFHC4XU0',\n",
       "  'direction': '东北',\n",
       "  'businessarea': [],\n",
       "  'address': '温泉大道886号',\n",
       "  'poiweight': '0.191595',\n",
       "  'name': '广州南方学院学术交流中心',\n",
       "  'location': '113.680066,23.630242',\n",
       "  'distance': '270.76',\n",
       "  'tel': [],\n",
       "  'type': '科教文化服务;会展中心;会展中心'},\n",
       " {'id': 'B0FFKP838K',\n",
       "  'direction': '北',\n",
       "  'businessarea': [],\n",
       "  'address': '博学路25号',\n",
       "  'poiweight': '0.191742',\n",
       "  'name': '教学楼3号(外国语学院)',\n",
       "  'location': '113.677247,23.630947',\n",
       "  'distance': '298.093',\n",
       "  'tel': [],\n",
       "  'type': '科教文化服务;学校;高等院校'},\n",
       " {'id': 'B0FFG4TAF2',\n",
       "  'direction': '东南',\n",
       "  'businessarea': [],\n",
       "  'address': '温泉镇乌土村松浪队5号(近博学路)',\n",
       "  'poiweight': '0.237309',\n",
       "  'name': '广州南方公寓',\n",
       "  'location': '113.678983,23.627778',\n",
       "  'distance': '102.617',\n",
       "  'tel': '13622768437',\n",
       "  'type': '住宿服务;旅馆招待所;旅馆招待所'},\n",
       " {'id': 'B0FFKP7GY5',\n",
       "  'direction': '北',\n",
       "  'businessarea': [],\n",
       "  'address': '温泉大道882号',\n",
       "  'poiweight': '0.218221',\n",
       "  'name': '广州南方学院3号实验楼',\n",
       "  'location': '113.678650,23.630612',\n",
       "  'distance': '244.566',\n",
       "  'tel': [],\n",
       "  'type': '地名地址信息;门牌信息;楼栋号'},\n",
       " {'id': 'B0GKYRKNUA',\n",
       "  'direction': '东南',\n",
       "  'businessarea': [],\n",
       "  'address': '温泉镇平岗村乌土平岗街25号(中南公寓旁)',\n",
       "  'poiweight': '0.209893',\n",
       "  'name': '乐妍茶(中大店)',\n",
       "  'location': '113.680097,23.627643',\n",
       "  'distance': '205.173',\n",
       "  'tel': '18028862548',\n",
       "  'type': '餐饮服务;冷饮店;冷饮店'},\n",
       " {'id': 'B0H33OZ7BU',\n",
       "  'direction': '北',\n",
       "  'businessarea': [],\n",
       "  'address': '博学路广州南方学院',\n",
       "  'poiweight': '0.191148',\n",
       "  'name': '广州南方学院学术报告厅',\n",
       "  'location': '113.678698,23.631219',\n",
       "  'distance': '312.056',\n",
       "  'tel': [],\n",
       "  'type': '科教文化服务;科教文化场所;科教文化场所'},\n",
       " {'id': 'B0JRKNVEFY',\n",
       "  'direction': '东北',\n",
       "  'businessarea': [],\n",
       "  'address': '温泉镇笃行路20、22、24号广州南方学院商业中心1层1F-001-1号',\n",
       "  'poiweight': '0.209894',\n",
       "  'name': '喜茶(广州南方学院店)',\n",
       "  'location': '113.679905,23.630533',\n",
       "  'distance': '285.72',\n",
       "  'tel': [],\n",
       "  'type': '餐饮服务;冷饮店;冷饮店'},\n",
       " {'id': 'B0HGD588HJ',\n",
       "  'direction': '北',\n",
       "  'businessarea': [],\n",
       "  'address': '温泉大道882号',\n",
       "  'poiweight': '0.221662',\n",
       "  'name': '广州南方学院4号教学楼',\n",
       "  'location': '113.677461,23.630578',\n",
       "  'distance': '252.08',\n",
       "  'tel': [],\n",
       "  'type': '地名地址信息;门牌信息;楼栋号'},\n",
       " {'id': 'B0H1XKYTYG',\n",
       "  'direction': '西北',\n",
       "  'businessarea': [],\n",
       "  'address': '温泉大道882号广州南方学院',\n",
       "  'poiweight': '0.198742',\n",
       "  'name': '广州南方学院西区篮球场',\n",
       "  'location': '113.677741,23.629552',\n",
       "  'distance': '135.401',\n",
       "  'tel': [],\n",
       "  'type': '体育休闲服务;运动场馆;篮球场馆'},\n",
       " {'id': 'B0HGDU76L2',\n",
       "  'direction': '北',\n",
       "  'businessarea': [],\n",
       "  'address': '温泉大道882号',\n",
       "  'poiweight': '0.221662',\n",
       "  'name': '广州南方学院2号实验楼',\n",
       "  'location': '113.678327,23.630969',\n",
       "  'distance': '281.377',\n",
       "  'tel': [],\n",
       "  'type': '地名地址信息;门牌信息;楼栋号'},\n",
       " {'id': 'B0IB2GMPW4',\n",
       "  'direction': '东北',\n",
       "  'businessarea': [],\n",
       "  'address': '温泉镇笃行路20、22、24号中山大学南方学院商业中心一楼1F-005',\n",
       "  'poiweight': '0.218331',\n",
       "  'name': '古茗(南方学院店)',\n",
       "  'location': '113.680105,23.630681',\n",
       "  'distance': '311.024',\n",
       "  'tel': '13717659301;18027267535',\n",
       "  'type': '餐饮服务;休闲餐饮场所;休闲餐饮场所'},\n",
       " {'id': 'B0I12780ZU',\n",
       "  'direction': '东南',\n",
       "  'businessarea': [],\n",
       "  'address': '内部地面停车场',\n",
       "  'poiweight': '0.203102',\n",
       "  'name': '内部地面停车场(出入口)',\n",
       "  'location': '113.679445,23.627444',\n",
       "  'distance': '162.262',\n",
       "  'tel': [],\n",
       "  'type': '交通设施服务;停车场;停车场出入口'},\n",
       " {'id': 'B0I1276BCM',\n",
       "  'direction': '东南',\n",
       "  'businessarea': [],\n",
       "  'address': [],\n",
       "  'poiweight': '0.257239',\n",
       "  'name': '内部地面停车场',\n",
       "  'location': '113.679445,23.627444',\n",
       "  'distance': '162.262',\n",
       "  'tel': [],\n",
       "  'type': '交通设施服务;停车场;专用停车场'},\n",
       " {'id': 'B0H25SMRKP',\n",
       "  'direction': '东北',\n",
       "  'businessarea': [],\n",
       "  'address': '温泉大道882号广州南方学院',\n",
       "  'poiweight': '0.263595',\n",
       "  'name': '广州南方学院大礼堂',\n",
       "  'location': '113.680076,23.631502',\n",
       "  'distance': '386.65',\n",
       "  'tel': [],\n",
       "  'type': '科教文化服务;科教文化场所;科教文化场所'},\n",
       " {'id': 'BV11417822',\n",
       "  'direction': '东南',\n",
       "  'businessarea': [],\n",
       "  'address': '从15路从20路',\n",
       "  'poiweight': '0.400088',\n",
       "  'name': '南方学院后门总站(公交站)',\n",
       "  'location': '113.679280,23.627201',\n",
       "  'distance': '171.243',\n",
       "  'tel': [],\n",
       "  'type': '交通设施服务;公交车站;公交车站相关'},\n",
       " {'id': 'B0FFK0MZII',\n",
       "  'direction': '东',\n",
       "  'businessarea': [],\n",
       "  'address': '温泉大道882号广州南方学院后门润泰超市一楼',\n",
       "  'poiweight': '0.10175',\n",
       "  'name': '街电(尚千谷中大南方店)',\n",
       "  'location': '113.680254,23.627804',\n",
       "  'distance': '213.132',\n",
       "  'tel': [],\n",
       "  'type': '生活服务;共享设备;充电宝'},\n",
       " {'id': 'B0HRV1D5FP',\n",
       "  'direction': '东北',\n",
       "  'businessarea': [],\n",
       "  'address': '温泉大道882号广州南方学院',\n",
       "  'poiweight': '0.191158',\n",
       "  'name': '广州南方学院博物馆',\n",
       "  'location': '113.679624,23.631631',\n",
       "  'distance': '380.463',\n",
       "  'tel': [],\n",
       "  'type': '科教文化服务;博物馆;博物馆'},\n",
       " {'id': 'B0FFKMSV6B',\n",
       "  'direction': '西北',\n",
       "  'businessarea': [],\n",
       "  'address': '温泉大道882号',\n",
       "  'poiweight': '0.232574',\n",
       "  'name': '广州南方学院西学楼2号楼',\n",
       "  'location': '113.675891,23.630025',\n",
       "  'distance': '300.564',\n",
       "  'tel': [],\n",
       "  'type': '地名地址信息;门牌信息;楼栋号'},\n",
       " {'id': 'B0FFKP81F0',\n",
       "  'direction': '西北',\n",
       "  'businessarea': [],\n",
       "  'address': '博学路与中山路交叉口南340米',\n",
       "  'poiweight': '0.191742',\n",
       "  'name': '教学楼1号(文学与传媒学院)',\n",
       "  'location': '113.676866,23.631736',\n",
       "  'distance': '393.93',\n",
       "  'tel': [],\n",
       "  'type': '科教文化服务;科教文化场所;科教文化场所'},\n",
       " {'id': 'B0HGDU99RM',\n",
       "  'direction': '北',\n",
       "  'businessarea': [],\n",
       "  'address': '温泉大道882号广州南方学院内',\n",
       "  'poiweight': '0.257947',\n",
       "  'name': '广州南方学院图书馆',\n",
       "  'location': '113.679303,23.632322',\n",
       "  'distance': '444.196',\n",
       "  'tel': '020-61787368;020-61787371',\n",
       "  'type': '科教文化服务;图书馆;图书馆'},\n",
       " {'id': 'B0HGDU92JD',\n",
       "  'direction': '北',\n",
       "  'businessarea': [],\n",
       "  'address': '温泉大道882号',\n",
       "  'poiweight': '0.221662',\n",
       "  'name': '广州南方学院1号教学楼',\n",
       "  'location': '113.676968,23.631720',\n",
       "  'distance': '388.57',\n",
       "  'tel': [],\n",
       "  'type': '地名地址信息;门牌信息;楼栋号'},\n",
       " {'id': 'B0FFH6K3U9',\n",
       "  'direction': '西北',\n",
       "  'businessarea': [],\n",
       "  'address': '温泉镇温泉大道882号广州南方学院H7栋1-5层',\n",
       "  'poiweight': '0.254885',\n",
       "  'name': '广州中大南方招待所',\n",
       "  'location': '113.676330,23.631332',\n",
       "  'distance': '378.102',\n",
       "  'tel': '020-61787222',\n",
       "  'type': '住宿服务;住宿服务相关;住宿服务相关'},\n",
       " {'id': 'B0H1YMW8PH',\n",
       "  'direction': '西北',\n",
       "  'businessarea': [],\n",
       "  'address': '温泉镇中山大学南方学院博学路6号西区食堂首层',\n",
       "  'poiweight': '0.214311',\n",
       "  'name': '肯德基(从化南方学院店)',\n",
       "  'location': '113.676031,23.631594',\n",
       "  'distance': '419.018',\n",
       "  'tel': '4009200715',\n",
       "  'type': '餐饮服务;快餐厅;快餐厅'},\n",
       " {'id': 'B0HGD592BJ',\n",
       "  'direction': '东北',\n",
       "  'businessarea': [],\n",
       "  'address': '温泉大道882号',\n",
       "  'poiweight': '0.221662',\n",
       "  'name': '广州南方学院综合楼',\n",
       "  'location': '113.680109,23.631605',\n",
       "  'distance': '398.334',\n",
       "  'tel': [],\n",
       "  'type': '地名地址信息;门牌信息;楼栋号'},\n",
       " {'id': 'B0HGD58NF8',\n",
       "  'direction': '北',\n",
       "  'businessarea': [],\n",
       "  'address': '温泉大道882号广州南方学院新综合楼2层',\n",
       "  'poiweight': '0.191229',\n",
       "  'name': '广州南方学院达人书院',\n",
       "  'location': '113.679041,23.632392',\n",
       "  'distance': '446.366',\n",
       "  'tel': [],\n",
       "  'type': '科教文化服务;学校;高等院校'},\n",
       " {'id': 'B0JBGSFI8C',\n",
       "  'direction': '西北',\n",
       "  'businessarea': [],\n",
       "  'address': '温泉大道882号',\n",
       "  'poiweight': '0.115716',\n",
       "  'name': '广州南方学院西学楼1号楼',\n",
       "  'location': '113.675570,23.630596',\n",
       "  'distance': '365.742',\n",
       "  'tel': [],\n",
       "  'type': '地名地址信息;门牌信息;楼栋号'}]"
      ]
     },
     "execution_count": 22,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "regeocode_data['pois']"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "29b42309",
   "metadata": {},
   "source": [
    "> 3. 建筑设施 name 有哪些？\n",
    "> 4. direction 为 北的 name 有哪些？\n",
    "> 5. 有 tel 的 建筑（name）有哪些？\n",
    "> 6. type 为\"餐饮服务\"有哪些？\n",
    "> 7. distance 小于200米的建筑设施有哪些？"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 23,
   "id": "6398f85a",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'id': 'B00140MR9A',\n",
       " 'direction': '北',\n",
       " 'businessarea': [],\n",
       " 'address': '温泉大道882号',\n",
       " 'poiweight': '0.450402',\n",
       " 'name': '广州南方学院',\n",
       " 'location': '113.679240,23.632576',\n",
       " 'distance': '470.34',\n",
       " 'tel': [],\n",
       " 'type': '科教文化服务;学校;高等院校'}"
      ]
     },
     "execution_count": 23,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "regeocode_data['pois'][0]"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 24,
   "id": "1ded4268",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'id': 'B0FFK8J7XY',\n",
       " 'direction': '东',\n",
       " 'businessarea': [],\n",
       " 'address': '温泉大道882号广州南方学院',\n",
       " 'poiweight': '0.233244',\n",
       " 'name': '广州南方学院(东南门)',\n",
       " 'location': '113.678689,23.628304',\n",
       " 'distance': '44.279',\n",
       " 'tel': [],\n",
       " 'type': '通行设施;临街院门;临街院门'}"
      ]
     },
     "execution_count": 24,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "regeocode_data['pois'][1]"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 25,
   "id": "9d3a862e",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'id': 'B0FFHRJDM9',\n",
       " 'direction': '东南',\n",
       " 'businessarea': [],\n",
       " 'address': '中大南方学院南门1号',\n",
       " 'poiweight': '0.256152',\n",
       " 'name': '中南公寓',\n",
       " 'location': '113.680340,23.627566',\n",
       " 'distance': '231.223',\n",
       " 'tel': '13711245345',\n",
       " 'type': '商务住宅;住宅区;住宅小区'}"
      ]
     },
     "execution_count": 25,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "regeocode_data['pois'][2]"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 26,
   "id": "c39ad5fd",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'id': 'B0H0M9NO43',\n",
       " 'direction': '东北',\n",
       " 'businessarea': [],\n",
       " 'address': '博学路广州南方学院',\n",
       " 'poiweight': '0.292147',\n",
       " 'name': '广州南方学院南方湖观景台',\n",
       " 'location': '113.679464,23.630429',\n",
       " 'distance': '252.022',\n",
       " 'tel': [],\n",
       " 'type': '风景名胜;风景名胜;观景点'}"
      ]
     },
     "execution_count": 26,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "regeocode_data['pois'][3]"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 27,
   "id": "88c3967a",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "30"
      ]
     },
     "execution_count": 27,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "len(regeocode_data['pois'])"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 30,
   "id": "574dca7a",
   "metadata": {},
   "outputs": [],
   "source": [
    "# 3. name有哪些?\n",
    "name = []\n",
    "for i in regeocode_data['pois']:\n",
    "    name.append(i['name'])"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 31,
   "id": "4ce51f92",
   "metadata": {
    "scrolled": true
   },
   "outputs": [
    {
     "data": {
      "text/plain": [
       "['广州南方学院',\n",
       " '广州南方学院(东南门)',\n",
       " '中南公寓',\n",
       " '广州南方学院南方湖观景台',\n",
       " '广州南方学院学术交流中心',\n",
       " '教学楼3号(外国语学院)',\n",
       " '广州南方公寓',\n",
       " '广州南方学院3号实验楼',\n",
       " '乐妍茶(中大店)',\n",
       " '广州南方学院学术报告厅',\n",
       " '喜茶(广州南方学院店)',\n",
       " '广州南方学院4号教学楼',\n",
       " '广州南方学院西区篮球场',\n",
       " '广州南方学院2号实验楼',\n",
       " '古茗(南方学院店)',\n",
       " '内部地面停车场(出入口)',\n",
       " '内部地面停车场',\n",
       " '广州南方学院大礼堂',\n",
       " '南方学院后门总站(公交站)',\n",
       " '街电(尚千谷中大南方店)',\n",
       " '广州南方学院博物馆',\n",
       " '广州南方学院西学楼2号楼',\n",
       " '教学楼1号(文学与传媒学院)',\n",
       " '广州南方学院图书馆',\n",
       " '广州南方学院1号教学楼',\n",
       " '广州中大南方招待所',\n",
       " '肯德基(从化南方学院店)',\n",
       " '广州南方学院综合楼',\n",
       " '广州南方学院达人书院',\n",
       " '广州南方学院西学楼1号楼']"
      ]
     },
     "execution_count": 31,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "name"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 37,
   "id": "56bb15ee",
   "metadata": {},
   "outputs": [],
   "source": [
    "# 4. direction 为 北的数据\n",
    "name_朝北 = []\n",
    "for i in regeocode_data['pois']:\n",
    "    if i['direction'] ==  '北':\n",
    "        name_朝北.append(i['name'])\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 38,
   "id": "d4d13f21",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "['广州南方学院',\n",
       " '教学楼3号(外国语学院)',\n",
       " '广州南方学院3号实验楼',\n",
       " '广州南方学院学术报告厅',\n",
       " '广州南方学院4号教学楼',\n",
       " '广州南方学院2号实验楼',\n",
       " '广州南方学院图书馆',\n",
       " '广州南方学院1号教学楼',\n",
       " '广州南方学院达人书院']"
      ]
     },
     "execution_count": 38,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "name_朝北"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "93b4e528",
   "metadata": {},
   "source": [
    "* 有 tel 的 建筑（name）有哪些？\n",
    "* type 为\"餐饮服务\"有哪些？\n",
    "* distance 小于200米的建筑设施有哪些？"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 46,
   "id": "c849a7c5",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "13711245345\n",
      "13622768437\n",
      "18028862548\n",
      "13717659301;18027267535\n",
      "020-61787368;020-61787371\n",
      "020-61787222\n",
      "4009200715\n"
     ]
    }
   ],
   "source": [
    "# 5. 有 tel 的 建筑（name）有哪些？\n",
    "\n",
    "for i in regeocode_data['pois']:\n",
    "#     print(i['tel'])\n",
    "    if type(i['tel']) == str:\n",
    "        print(i['tel'])\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 52,
   "id": "f2ee59fe",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "乐妍茶(中大店)\n",
      "喜茶(广州南方学院店)\n",
      "古茗(南方学院店)\n",
      "肯德基(从化南方学院店)\n"
     ]
    }
   ],
   "source": [
    "#  type 为\"餐饮服务\"有哪些？\n",
    "for i in regeocode_data['pois']:\n",
    "    if '餐饮' in i['type']:\n",
    "        print(i['name'])\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 57,
   "id": "fc844778",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "广州南方学院(东南门)\n",
      "广州南方公寓\n",
      "广州南方学院西区篮球场\n",
      "内部地面停车场(出入口)\n",
      "内部地面停车场\n",
      "南方学院后门总站(公交站)\n"
     ]
    }
   ],
   "source": [
    "# distance 小于200米的建筑设施有哪些？\n",
    "for i in regeocode_data['pois']:\n",
    "    if float(i['distance'])< 200:\n",
    "        print(i['name'])"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "30e86558",
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3 (ipykernel)",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.11.5"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}
